package com.lagou.sqlSession;

import com.lagou.pojo.MappedStatement;

import java.util.List;

public interface SqlSession {

    public <T> T getMapper(Class<?> mapperClass);

    //查询所有
    public <E> List<E> selectList(MappedStatement mappedStatement, Object... params) throws Exception;
    //根据条件查询多个
    public <T> T selectOne(MappedStatement mappedStatement,Object... params) throws Exception;

    public int insert(MappedStatement mappedStatement,Object... params) throws Exception;
    public int update(MappedStatement mappedStatement,Object... params) throws Exception;
    public int delete(MappedStatement mappedStatement,Object... params) throws Exception;


}
